package com.changan.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.changan.mapper.BillMapper;
import com.changan.entity.Bill;
import com.changan.service.BillService;
@Service
public class BillServiceImpl implements BillService{

    @Resource
    private BillMapper billMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return billMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Bill record) {
        return billMapper.insert(record);
    }

    @Override
    public int insertSelective(Bill record) {
        return billMapper.insertSelective(record);
    }

    @Override
    public Bill selectByPrimaryKey(Long id) {
        return billMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Bill record) {
        return billMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Bill record) {
        return billMapper.updateByPrimaryKey(record);
    }

}
